package role

import (
	"mldong/api/base"

	"github.com/gogf/gf/v2/frame/g"
)

type SaveReq struct {
	g.Meta `path:"/sys/role/save" tags:"角色管理" method:"post" summary:"添加角色"`
	RoleParam
}
type UpdateReq struct {
	g.Meta `path:"/sys/role/update" tags:"角色管理" method:"post" summary:"修改角色"`
	RoleParam
}
type DetailReq struct {
	g.Meta `path:"/sys/role/detail" tags:"角色管理" method:"post" summary:"角色详情"`
	ID     string `json:"id" dc:"角色ID" v:"required#请输入角色ID"`
}

type DetailRes struct {
	base.CommonResult
	Data RoleVO `json:"data" dc:"角色信息"`
}
type RemoveReq struct {
	g.Meta `path:"/sys/role/remove" tags:"角色管理" method:"post" summary:"删除角色"`
	Ids    []string `json:"ids" dc:"角色ID集合" v:"required#请输入角色ID集合|min-length:1"`
}
type PageReq struct {
	g.Meta `path:"/sys/role/page" tags:"角色管理" method:"post" summary:"角色分页查询"`
	base.PageParam
}
type RolePageVO struct {
	base.PageVO
	Rows []RoleVO `json:"rows" dc:"数据列表"`
}
type PageRes struct {
	base.CommonResult
	Data RolePageVO `json:"data" dc:"角色分页返回实体"`
}